package com.esunny.resourcevisualization.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @version 1.0.0.0
 * @ClassName Apply
 * @Description 申请信息实体
 * @Author baochencong
 * @Date 2020/11/24 16:15
 */
public class Apply {

    private int id;

    private String processInstanceId;

    private String currentTaskId;

    private int resourceCacheInfoId;

    private String resourceTypeName;

    private int applyResourceId;

    private String applyCount;

    private String applyReason;

    private String applyStatus;

    private String applyBy;

    private String adminRemark;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "Asia/Shanghai")
    private Date applyStartUseTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "Asia/Shanghai")
    private Date applyEndUseTime;

    private Date applySubmitTime;

    private Date applyUpdateTime;

    private boolean deleted;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getCurrentTaskId() {
        return currentTaskId;
    }

    public void setCurrentTaskId(String currentTaskId) {
        this.currentTaskId = currentTaskId;
    }

    public int getResourceCacheInfoId() {
        return resourceCacheInfoId;
    }

    public void setResourceCacheInfoId(int resourceCacheInfoId) {
        this.resourceCacheInfoId = resourceCacheInfoId;
    }

    public String getResourceTypeName() {
        return resourceTypeName;
    }

    public void setResourceTypeName(String resourceTypeName) {
        this.resourceTypeName = resourceTypeName;
    }

    public int getApplyResourceId() {
        return applyResourceId;
    }

    public void setApplyResourceId(int applyResourceId) {
        this.applyResourceId = applyResourceId;
    }

    public String getApplyCount() {
        return applyCount;
    }

    public void setApplyCount(String applyCount) {
        this.applyCount = applyCount;
    }

    public String getApplyReason() {
        return applyReason;
    }

    public void setApplyReason(String applyReason) {
        this.applyReason = applyReason;
    }

    public String getApplyStatus() {
        return applyStatus;
    }

    public void setApplyStatus(String applyStatus) {
        this.applyStatus = applyStatus;
    }

    public String getApplyBy() {
        return applyBy;
    }

    public void setApplyBy(String applyBy) {
        this.applyBy = applyBy;
    }

    public String getAdminRemark() {
        return adminRemark;
    }

    public void setAdminRemark(String adminRemark) {
        this.adminRemark = adminRemark;
    }

    public Date getApplyStartUseTime() {
        return applyStartUseTime;
    }

    public void setApplyStartUseTime(Date applyStartUseTime) {
        this.applyStartUseTime = applyStartUseTime;
    }

    public Date getApplyEndUseTime() {
        return applyEndUseTime;
    }

    public void setApplyEndUseTime(Date applyEndUseTime) {
        this.applyEndUseTime = applyEndUseTime;
    }

    public Date getApplySubmitTime() {
        return applySubmitTime;
    }

    public void setApplySubmitTime(Date applySubmitTime) {
        this.applySubmitTime = applySubmitTime;
    }

    public Date getApplyUpdateTime() {
        return applyUpdateTime;
    }

    public void setApplyUpdateTime(Date applyUpdateTime) {
        this.applyUpdateTime = applyUpdateTime;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Apply{" +
                "id=" + id +
                ", processInstanceId='" + processInstanceId + '\'' +
                ", currentTaskId='" + currentTaskId + '\'' +
                ", resourceCacheInfoId=" + resourceCacheInfoId +
                ", resourceTypeName='" + resourceTypeName + '\'' +
                ", applyResourceId=" + applyResourceId +
                ", applyReason='" + applyReason + '\'' +
                ", applyStatus='" + applyStatus + '\'' +
                ", applyBy='" + applyBy + '\'' +
                ", adminRemark='" + adminRemark + '\'' +
                ", applyStartUseTime=" + applyStartUseTime +
                ", applyEndUseTime=" + applyEndUseTime +
                ", applySubmitTime=" + applySubmitTime +
                ", applyUpdateTime=" + applyUpdateTime +
                ", deleted=" + deleted +
                '}';
    }
}
